package com.ttl.bc.ap.stkrefund.bean;

import java.util.Date;

public class BCInvStkRefund {
/*	Table:BCInvStkRefund	ใบลดหนี้/ใบส่งคืนสินค้า (Select Invoice in Stock Refund)											
	Attribute 		Name			Description					Data Type	Length	PK	AK	FK	References	Index	Uniqueness	NullSupport		DefaultValue	Identity*/

	private	Integer	rowOrder;		//	เป็นเลข Running ของ Table	Integer				Y								Y			N								0, 1
	private	Date	docDate;		//	วันที่						Date										
	private	String	apCode;			//	รหัสเจ้าหนี้					varchar		20									
	private	String	stkRefundNo;	//	เลขที่ใบลดหนี้				varchar		20				Y	BcStkRefund					
	private	Integer	returnMoney;	//	0= ไม่ 1= รับคืนเงินสด			SmallInt																			0	
	private	Integer	returnStatus;	//	0= ไม่ตัดยอด 1= ตัดยอดทันที		SmallInt																			0	
	private	String	invoiceNo;		//	เลขที่ใบ Invoice ที่จะลด		varchar		20									
	private	String	invoiceDisc;	//	ส่วนลดเดิมของ Inv			varchar		40									
	private	Double 	invExchangeRate;//	ExchangeRate ของ Invoice	double																				0.00	
	private	Double 	newExchangeRate;//	อัตราแลกเปลี่ยนใหม่				double																				0.00	
	private	Double 	oldAmount;		//	ยอดเดิม					double																				0.00	
	private	Double 	sumOfItemAmount;//	รวมยอดของรายการสินค้า ตามสินค้าที่คิดภาษี	double										
	private	Double 	discountAmount;	//	ยอดที่ลด					double										
	private	Double 	diffAmount;		//	ยอดผลต่าง, ยอดที่จะลด เป็นรวมใน	double																				0.00	
	private	Double 	zeroTaxAmount;	//	รวมยอดภาษีอัตรา 0				double										
	private	Double 	exceptTaxAmount;//	รวมยอดยกเว้นภาษี				double										
	private	Double 	trueAmount;		//	ยอดที่ถูกต้อง					double																				0.00	
	private	Double 	homeAmount1;	//	ยอดลดตามสกุลเงินเดิม			double																				0.00	
									//	InvExchangeRate * DiffAmount											
	private	Double 	homeAmount2;	//	ยอดลดตามสกุลเงินใหม่			double																				0.00	
									//	NewExchangeRate * DiffAmount											
	private	Double 	exchangeProfit;	//	กำไร(ขาดทุน)				double																				0.00	
									//	HomeAmount1-HomeAmount2											
	private	Integer	IsCancel;		// 	กำไร(ขาดทุน) 											
									//	HomeAmount1-HomeAmount2											
	private	Integer	billType;		//	0 = ใบส่งของ 1 = เอกสารยกมา 	SmallInt																			0	
									//	2 = ตั้งลูกหนี้อื่นๆ											

	private	BCStkRefund	bcStkRefund;
						
	
	public BCStkRefund getBcStkRefund() {
		return bcStkRefund;
	}

	public void setBcStkRefund(BCStkRefund bcStkRefund) {
		this.bcStkRefund = bcStkRefund;
	}

	public Integer getRowOrder() {
		return rowOrder;
	}

	public void setRowOrder(Integer rowOrder) {
		this.rowOrder = rowOrder;
	}

	public Date getDocDate() {
		return docDate;
	}

	public void setDocDate(Date docDate) {
		this.docDate = docDate;
	}

	public String getApCode() {
		return apCode;
	}

	public void setApCode(String apCode) {
		this.apCode = apCode;
	}

	public String getStkRefundNo() {
		return stkRefundNo;
	}

	public void setStkRefundNo(String stkRefundNo) {
		this.stkRefundNo = stkRefundNo;
	}

	public Integer getReturnMoney() {
		return returnMoney;
	}

	public void setReturnMoney(Integer returnMoney) {
		this.returnMoney = returnMoney;
	}

	public Integer getReturnStatus() {
		return returnStatus;
	}

	public void setReturnStatus(Integer returnStatus) {
		this.returnStatus = returnStatus;
	}

	public String getInvoiceNo() {
		return invoiceNo;
	}

	public void setInvoiceNo(String invoiceNo) {
		this.invoiceNo = invoiceNo;
	}

	public String getInvoiceDisc() {
		return invoiceDisc;
	}

	public void setInvoiceDisc(String invoiceDisc) {
		this.invoiceDisc = invoiceDisc;
	}

	public Double getInvExchangeRate() {
		return invExchangeRate;
	}

	public void setInvExchangeRate(Double invExchangeRate) {
		this.invExchangeRate = invExchangeRate;
	}

	public Double getNewExchangeRate() {
		return newExchangeRate;
	}

	public void setNewExchangeRate(Double newExchangeRate) {
		this.newExchangeRate = newExchangeRate;
	}

	public Double getOldAmount() {
		return oldAmount;
	}

	public void setOldAmount(Double oldAmount) {
		this.oldAmount = oldAmount;
	}

	public Double getSumOfItemAmount() {
		return sumOfItemAmount;
	}

	public void setSumOfItemAmount(Double sumOfItemAmount) {
		this.sumOfItemAmount = sumOfItemAmount;
	}

	public Double getDiscountAmount() {
		return discountAmount;
	}

	public void setDiscountAmount(Double discountAmount) {
		this.discountAmount = discountAmount;
	}

	public Double getDiffAmount() {
		return diffAmount;
	}

	public void setDiffAmount(Double diffAmount) {
		this.diffAmount = diffAmount;
	}

	public Double getZeroTaxAmount() {
		return zeroTaxAmount;
	}

	public void setZeroTaxAmount(Double zeroTaxAmount) {
		this.zeroTaxAmount = zeroTaxAmount;
	}

	public Double getExceptTaxAmount() {
		return exceptTaxAmount;
	}

	public void setExceptTaxAmount(Double exceptTaxAmount) {
		this.exceptTaxAmount = exceptTaxAmount;
	}

	public Double getTrueAmount() {
		return trueAmount;
	}

	public void setTrueAmount(Double trueAmount) {
		this.trueAmount = trueAmount;
	}

	public Double getHomeAmount1() {
		return homeAmount1;
	}

	public void setHomeAmount1(Double homeAmount1) {
		this.homeAmount1 = homeAmount1;
	}

	public Double getHomeAmount2() {
		return homeAmount2;
	}

	public void setHomeAmount2(Double homeAmount2) {
		this.homeAmount2 = homeAmount2;
	}

	public Double getExchangeProfit() {
		return exchangeProfit;
	}

	public void setExchangeProfit(Double exchangeProfit) {
		this.exchangeProfit = exchangeProfit;
	}

	public Integer getIsCancel() {
		return IsCancel;
	}

	public void setIsCancel(Integer isCancel) {
		IsCancel = isCancel;
	}

	public Integer getBillType() {
		return billType;
	}

	public void setBillType(Integer billType) {
		this.billType = billType;
	}

//	public BCStkRefund getBcStkRefund() {
//		return bcStkRefund;
//	}
//
//	public void setBcStkRefund(BCStkRefund bcStkRefund) {
//		this.bcStkRefund = bcStkRefund;
//	}

	public BCInvStkRefund() {
	
	}
	
	
}
